import 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import fastclick from 'fastclick'
import 'common/stylus/index.styl'
import VueLazyload from 'vue-lazyload'
fastclick.attach(document.body)// 在body里面解决移动端点击300毫秒延迟问题
/* eslint-disable no-new */
Vue.use(VueLazyload, {
  // 加载中图片，一定要有，不然会一直重复加载占位图
  loading: require('common/image/default.png')
  // error: require('img/error.png')  //加载失败图片
})
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
